
package cn.sylinx.web.template.velocity;

import cn.sylinx.web.template.TemplateRender;
import io.vertx.core.http.HttpMethod;
import io.vertx.ext.web.RoutingContext;

/**
 * velocity模板跳转渲染
 *
 * @author hanqz
 */
public class VelocityTemplateRender implements TemplateRender {

	public static final String CONTEXT_PATH_VELOCITY = "/velocity";

	@Override
	public void render(RoutingContext ctx, String tplPath) {

		String path = CONTEXT_PATH_VELOCITY + tplPath;
		ctx.reroute(HttpMethod.GET, path);
	}

}
